package model.components;

import model.Request;

/**
 * LinkMapping class. It is a pair composed of:
 * Request request
 * RequestLink requestLink
 */
public class LinkMapping {
	
	private Request request;
	private RequestLink requestLink;
	
	public LinkMapping(Request r, RequestLink rl) {
		this.request = r;
		this.requestLink = rl;
	}

	public Request getRequest() {
		return request;
	}

	public void setRequest(Request request) {
		this.request = request;
	}

	public RequestLink getRequestLink() {
		return requestLink;
	}

	public void setRequestLink(RequestLink requestLink) {
		this.requestLink = requestLink;
	}

	public LinkMapping getCopy() {
		LinkMapping lm = new LinkMapping((Request)this.getRequest().getCopy(),
				(RequestLink)this.getRequestLink().getCopy());
		return lm;
	}

	
}
